import axios from '../assets//http/http'
import url from './url'

axios.defaults.withCredentials = true
export default{
  // 查询订单记录
  getOrderRecord (params) {
      return axios.get(url.orderRecord, {params: params})
  },
  getMessage (params) {
      return axios.get(url.proMessage, {params: params})
  },
  // 修改提示功能的信息
   saveproMessage(params){
   return axios.post(url.saveproMessage,params)
  },
  // 查询提示功能的信息
   searchProFunc (params) {
      return axios.get(url.searchProFunc, {params: params})
  },
  // 保存提示功能的信息
  savepromptFunction(params){
    return axios.post(url.promptFunction, params)
  },
 
    deletepromptFunction (params) {
    return axios.get(url.deletepromptFunction + params)
  },
  // 获取比赛记录
   getgameRecord (params) {
      return axios.get(url.gameRecord, {params: params})
  },
  // 查询比赛记录
   searchGameRecord (params) {
    return axios.get(url.gameRecord, {params: params})
  },
  //获取游戏倍率初始数据
  getgameSetting(params){
    return axios.get(url.gameSetting,{params:params})
  },
  // 修改游戏牌型倍率
  gameSettingSave(params){
    return axios.post(url.gameSettingSave, params)
  },
  getgameConfig(params){
     return axios.get(url.gameConfig, {params:params})
  },
  reviseMes (params) {
     return axios.post(url.reviseMes, params)
  },
    //提现记录
  withdrawal(params){
   return axios.get(url.withdrawal, {params: params})
  },
  //充值记录
  recharge(params){
   return axios.get(url.recharge, {params: params})
  },
  
  //用户统计
  userCensus(params){
   return axios.get(url.userCensus, {params: params})
  },
  //每分钟计算一次
  minuteCensus(params){
   return axios.get(url.minuteCensus, {params: params})
  },
  //当周/当月
  weekmonCensus(params){
   return axios.get(url.weekmonCensus, {params: params})
  },
  getShieldWord(params){
     return axios.get(url.shieldWord, {params: params})
  },
  saveShieldWord(params){
    return axios.post(url.saveShieldWord, params)
  },
  deleteShieldWord(params) {
    return axios.get(url.deleteShieldWord + params)
  },
  // 修改汇率
   changeRate(params){
    return axios.post(url.changeRate, params)
  },
  // 获取货币汇率
  getRate(params){
    return axios.get(url.getRate,{params: params})
  },
  // 获取牌型概率
  getbrandProbability(params){
    return axios.get(url.getbrandProbability,{params:params})
  },
   // 修改牌型概率
   changebrandProbability(params){
     return axios.post(url.changebrandProbability,params)
   },
  //  获取商品信息
   getGoodsMessage(params){
     return axios.get(url.getGoodsMessage,{params:params})
   },
  //  添加商品信息
  addGoodsMessage(params){
    return axios.post(url.addGoodsMessage,params)
  },
  deleteGoodsMessage(params){
    return axios.get(url.deleteGoodsMessage + params)
  },
  alterDrawStu(params) {
     return axios.post(url.alterDrawStu, params)
  },
   //修改状态
  alterRecStu(params) {
     return axios.post(url.alterRecStu, params)
  },
  // 获取全部公告数据
  getAlldata(params){
    return axios.get(url.getAlldata,{params: params})
  },
  saveNotice(params) {
     return axios.post(url.saveNotice, params)
  },
  //用户信息
  userdata(params){
   return axios.get(url.userdata, {params: params})
  },
  // 删除历史公告
  deletehisNotice(params){
    return axios.get(url.hisNotice + params)
  },
  //查询用户信息
   userSecdata(params){
   return axios.get(url.userSecdata, {params: params})
  },
  // 登陆方法
   login(params) {
     return axios.post(url.login, params)
  },
  // 开关维护接口
  repair(params){
    return axios.get(url.repair,{params: params})
  },
  // 修改维护开关的接口
  repairChange(params){
    return axios.post(url.repairChange,params)
  },
  // 登陆方法
   user(params){
   return axios.get(url.user, {params: params})
  },
   //查询提现记录
  Selectwithdrawal(params){
   return axios.get(url.withdrawal, {params: params})
  },
//查询充值记录
   Selectrecharge(params){
   return axios.get(url.recharge, {params: params})
  },
// 退出登陆
  logout(params){
   return axios.get(url.logout, {params: params})
  },
  //获取支付渠道数据
  payoff(params){
   return axios.get(url.payoff, {params: params})
  },
  // 充值渠道
  savepay(params){
  return axios.post(url.savepay,params)
  },
//用户统计
  usercount(params){
   return axios.get(url.usercount, {params: params})
  },
  //  websocketFour
  websocketFour(params){
   
  }
}